package com.starlink.model.dtomapper;

import com.starlink.model.domain.FreeDeliveryTermsDO;
import com.starlink.model.request.FreeDeliveryTermsRequest;
import com.starlink.model.vo.FreeDeliveryTermsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface FreeDeliveryTermsDtoMapper {

    FreeDeliveryTermsDtoMapper INSTANCE = Mappers.getMapper(FreeDeliveryTermsDtoMapper.class);

    /**
    * DO to VO
    * @param freeDeliveryTermsDO
    * @return
    */
    FreeDeliveryTermsVO do2VO(FreeDeliveryTermsDO freeDeliveryTermsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    FreeDeliveryTermsDO request2DO(FreeDeliveryTermsRequest request);
}
